@model ShivamEMR.Model.Domain.ContactsDomain.Address

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Address</legend>

    <div class="display-label">Address1</div>
    <div class="display-field">@Model.Address1</div>

    <div class="display-label">Address2</div>
    <div class="display-field">@Model.Address2</div>

    <div class="display-label">Landmark</div>
    <div class="display-field">@Model.Landmark</div>

    <div class="display-label">ZipCode</div>
    <div class="display-field">@Model.ZipCode</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">AddressType</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.AddressType).ToString()</div>

    <div class="display-label">City</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.City).ToString()</div>

    <div class="display-label">Territory</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Territory).ToString()</div>

    <div class="display-label">Country</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Country).ToString()</div>

    <div class="display-label">Company</div>
    <div class="display-field">@(Model.Company == null ? "None" : Model.Company.Name)</div>

    <div class="display-label">Branch</div>
    <div class="display-field">@(Model.Branch == null ? "None" : Model.Branch.Name)</div>

    <div class="display-label">Persons</div>
    <div class="display-field">@(Model.Persons == null ? "None" : Model.Persons.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


